package indi.zhifa.recipe.bailan5.coupon.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import indi.zhifa.recipe.bailan.framework.mysql.entity.po.BaseEntity;
import indi.zhifa.recipe.bailan.framework.mysql.entity.po.SysBaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

/**
 * <p>
 * 消费券实体
 * </p>
 *
 * @author 织法
 * @since 2023-02-08
 */
@Data
@TableName("busy_coupon_object")
@Schema(title = "CouponObjectEntity对象", description = "消费券实体")
public class CouponObjectEntity extends SysBaseEntity {

    @Schema(title = "用户Id")
    private Long userId;

    @Schema(title = "消费券Id")
    private Long couponId;

    @Schema(title = "是否已使用")
    private Boolean used;

    @Schema(title = "公司权限Id")
    private Long companyAuthId;

    @Schema(title = "超时日期")
    private LocalDate expireDate;
}
